package tankGame04;

import javax.swing.*;

/**
 * Created with IntelliJ IDEA
 * Description:坦克大战0.2版
 * User:22954
 * Date:2024-03-01
 * Time:12:00
 */
@SuppressWarnings("all")
public class Game extends JFrame {
    MyPanel myPanel = null;

    public static void main(String[] args) {
        Game game = new Game();
    }

    public Game() {
        myPanel = new MyPanel();
        new Thread(myPanel).start();
        super.add(myPanel);
        super.setSize(1000, 750);
        super.addKeyListener(myPanel);
        super.setVisible(true);
        super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
